package org.springblade.modules.admin.service.feishu.impl;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.modules.admin.service.feishu.ILarkSyncService;
import org.springblade.modules.admin.task.feishu.LarkElevatorMaintenanceOverdueDataJob;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author: Sharry
 * @createTime: 2025-03-20 13:45
 * @version: Version-1.0
 */
@Service
@Slf4j
@AllArgsConstructor
public class LarkSyncServiceImpl implements ILarkSyncService {
	private final LarkElevatorMaintenanceOverdueDataJob larkElevatorMaintenanceOverdueDataJob;

	@Override
	@Async
	public void overdueTaskTest() {
		larkElevatorMaintenanceOverdueDataJob.galaxyElevatorMaintenanceOverdueDataJobCopy();
	}

	@Override
	@Async
	public void overdueTask() {
		larkElevatorMaintenanceOverdueDataJob.galaxyElevatorMaintenanceOverdueDataJob();
	}
}
